<%@ Page Language="C#" MasterPageFile="~/master/public-regular.master" AutoEventWireup="true"
    CodeFile="contact-us.aspx.cs" Inherits="contactus" Title="Untitled Page" %>

<%@ Register Src="controls/wucLoadCMS.ascx" TagName="wucLoadCMS" TagPrefix="uc1" %>
<%@ Register  Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<%@ Register Src="~/controls/wucValidator.ascx" TagName="Validator" TagPrefix="wuc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderNestedHeader"
    runat="Server">
</asp:Content>
<asp:Content ID="cntContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <script type="text/javascript" src="<%=rootPath %>javascript/general/prototype.js"></script>
    <div class="regular-pages inline registration-form">
        <ucc:responsemessage id="uccResponseMessage" runat="server"></ucc:responsemessage>
        <ucc:responsemessage id="ResponseMessage1" runat="server"></ucc:responsemessage>
        <fieldset>
            <uc1:wucloadcms id="wucLoadCMS1" runat="server" cmsid="2" />
        </fieldset>
        <fieldset>
            <label>
                Name</label>
            <asp:TextBox ID="tbxName" runat="server" CssClass="text" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="tbxName"
                ErrorMessage="Name is required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true">
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revName" ControlToValidate="tbxName"
                EnableClientScript="true" ErrorMessage="Incorrect Text Format" SetFocusOnError="true"
                ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Organization</label>
            <asp:TextBox ID="tbxOrganization" runat="server" CssClass="text" size="25"></asp:TextBox>
            <br />
            <label>
                Telephone</label>
            <asp:TextBox ID="tbxTelephone" runat="server" CssClass="text" size="25"></asp:TextBox>
            <br />
            <label>
                E-mail</label>
            <asp:TextBox ID="tbxEmail" runat="server" CssClass="text" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvEmailAddress" runat="server" ControlToValidate="tbxEmail"
                ErrorMessage="Email Address is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revEmailAddress" ControlToValidate="tbxEmail"
                EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
                ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
            </asp:RegularExpressionValidator>
            <br />
            <label>
                Website</label>
            <asp:TextBox ID="tbxWebsiteAddress" runat="server" CssClass="text" size="25"></asp:TextBox>
            <br />
            <label>
                Subject</label>
            <asp:TextBox ID="tbxSubjectOfInquiry" runat="server" CssClass="text" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvSubjectOfInquiry" runat="server" ControlToValidate="tbxSubjectOfInquiry"
                ErrorMessage="Subject Of Inquiry is required" Display="dynamic" SetFocusOnError="true"
                EnableClientScript="true">
            </asp:RequiredFieldValidator>
            <br />
            <label>
                Inquires</label>
            <asp:TextBox ID="tbxInquiry" runat="server" TextMode="MultiLine" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvInquiry" runat="server" ControlToValidate="tbxInquiry"
                ErrorMessage="Inquiry is required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true">
            </asp:RequiredFieldValidator>
        </fieldset>
        <div class="btn-place-holder">
            <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="button gray" CausesValidation="false"
                OnClientClick="javascript:ResetFields();return false;" />
            <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="button green" OnClick="btnSubmit_Click" />
        </div>
        <br class="clear" />
    </div>
    <br class="clear" />
    <script language="javascript" type="text/javascript">
        function ResetFields() {
            $('<%= tbxName.ClientID %>').value = '';
            $('<%= tbxOrganization.ClientID %>').value = '';
            $('<%= tbxEmail.ClientID %>').value = '';
            $('<%= tbxTelephone.ClientID %>').value = '';
            $('<%= tbxWebsiteAddress.ClientID %>').value = '';
            $('<%= tbxSubjectOfInquiry.ClientID %>').value = '';
            $('<%= tbxInquiry.ClientID %>').value = '';
        }
      
    </script>
</asp:Content>
